<?php
include( JPATH_COMPONENT.DS.'extra'.DS.'includes'.DS.'Show.php' );
Show::mainMenu();
?>
<div id="componente">

	<div id="ultimosSitios" style="float:left;width:190px;padding:1px;margin:2px 2px 2px 2px;text-align:justify;">	
		<b>&Uacute;ltimos sitios</b>
		<?php 
		$cont=0;
		$ultimosSitios=$this->mHome->getUltimosSitios(); 
		foreach ($ultimosSitios[0] as $sitio) 
		{
			Show::previsualizarSitio($ultimosSitios,$sitio,$cont);			
			$cont=$cont+1;
		}
		?>
		
	</div>
	
	<div id="topArticulos" style="float:left;width:700px;padding:1px;margin:2px 2px 2px 2px;text-align:justify;">
		<b>Art&iacute;culos m&aacute;s votados</b>
		<?php 
		$cont=0; 
		$topArticulos=$this->mHome->getTopArticulos();
		foreach ($topArticulos[0] as $articulo) 
		{
			Show::previsualizarArticulo($topArticulos,$articulo,$cont);
			$cont=$cont+1;
		}
		?>
	</div>
	
	<?php
	$tags = $this->mHome->getTags();
	Show::getTagCloud($tags);
	?>
	
</div>